#ifndef CFG_H_
#define CFG_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "evconnsvrd.h"

#define EVCONN_DEF_MM_MAX_SIZE (1 << 20) * 256
#define EVCONN_DEF_MM_UNIT_SIZE 4

#define EVCONN_DEF_LOG_TYPE ELogRotator_Date
#define EVCONN_DEF_LOG_LEVEL ELogLevel_Debug
#define EVCONN_DEF_LOG_ARGS 0

#define EVCONN_DEF_MULTITHREAD 0

#define EVCONN_DEF_TICK_INTERVAL 60

#define EVCONN_DEF_KICK_TIMEOUT 600

#define EVCONN_CONN_DEF_POOL_THRESHOLD 1024

#define EVCONN_STOP_SIGNAL SIGUSR1
#define EVCONN_RELOAD_SIGNAL SIGUSR2

#define EVCONN_CONN_BUFFER_SIZE 128 * 1024

int32_t load_cfg(struct ConnCtx* ctx, const char* cfg_file, int only_reload);

#ifdef __cplusplus
}
#endif

#endif // CFG_H_

